Optimal. Leaf size=119 \[ -\frac{8 \sqrt{2} a (1-\sin (e+f x)) \cos ^3(e+f x) (c+d \sin (e+f x))^n \left (\frac{c+d \sin (e+f x)}{c+d}\right )^{-n} F_1\left (\frac{5}{2};-\frac{5}{2},-n;\frac{7}{2};\frac{1}{2} (1-\sin (e+f x)),\frac{d (1-\sin (e+f x))}{c+d}\right )}{5 f (\sin (e+f x)+1)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.141013, antiderivative size = 119, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.097, Rules used = {2868, 139, 138} \[ -\frac{8 \sqrt{2} a (1-\sin (e+f x)) \cos ^3(e+f x) (c+d \sin (e+f x))^n \left (\frac{c+d \sin (e+f x)}{c+d}\right )^{-n} F_1\left (\frac{5}{2};-\frac{5}{2},-n;\frac{7}{2};\frac{1}{2} (1-\sin (e+f x)),\frac{d (1-\sin (e+f x))}{c+d}\right )}{5 f (\sin (e+f x)+1)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2868
Rule 139
Rule 138
Rubi steps
\begin{align*} \int \cos ^4(e+f x) (a+a \sin (e+f x)) (c+d \sin (e+f x))^n \, dx &=\frac{\left (a \cos ^3(e+f x)\right ) \operatorname{Subst}\left (\int (1-x)^{3/2} (1+x)^{5/2} (c+d x)^n \, dx,x,\sin (e+f x)\right )}{f (1-\sin (e+f x))^{3/2} (1+\sin (e+f x))^{3/2}}\\ &=\frac{\left (a \cos ^3(e+f x) (c+d \sin (e+f x))^n \left (-\frac{c+d \sin (e+f x)}{-c-d}\right )^{-n}\right ) \operatorname{Subst}\left (\int (1-x)^{3/2} (1+x)^{5/2} \left (-\frac{c}{-c-d}-\frac{d x}{-c-d}\right )^n \, dx,x,\sin (e+f x)\right )}{f (1-\sin (e+f x))^{3/2} (1+\sin (e+f x))^{3/2}}\\ &=-\frac{8 \sqrt{2} a F_1\left (\frac{5}{2};-\frac{5}{2},-n;\frac{7}{2};\frac{1}{2} (1-\sin (e+f x)),\frac{d (1-\sin (e+f x))}{c+d}\right ) \cos ^3(e+f x) (1-\sin (e+f x)) (c+d \sin (e+f x))^n \left (\frac{c+d \sin (e+f x)}{c+d}\right )^{-n}}{5 f (1+\sin (e+f x))^{3/2}}\\ \end{align*}
Mathematica [F] time = 0.737515, size = 0, normalized size = 0. \[ \int \cos ^4(e+f x) (a+a \sin (e+f x)) (c+d \sin (e+f x))^n \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.432, size = 0, normalized size = 0. \begin{align*} \int \left ( \cos \left ( fx+e \right ) \right ) ^{4} \left ( a+a\sin \left ( fx+e \right ) \right ) \left ( c+d\sin \left ( fx+e \right ) \right ) ^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \cos \left (f x + e\right )^{4} \sin \left (f x + e\right ) + a \cos \left (f x + e\right )^{4}\right )}{\left (d \sin \left (f x + e\right ) + c\right )}^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )}{\left (d \sin \left (f x + e\right ) + c\right )}^{n} \cos \left (f x + e\right )^{4}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]